Filling in some of the functions in main and print.  However, it looks like scanner will be the main problem.