Break into functions and switch to asking for input
Actually make it run.
Add a template file