If you want you can have the functions `yield` lines and then have the entry point go through and print to stdout, to decouple the functions themselves from the IO