Now the plan needs to be written to file. Since we have it already in a suitable internal representation, that is easy now:
/home/nagel/src/book/plan/book/Plan::writePlan