Figured out how to actually compile and run a multi-function program (thanks to Javier), and solved problem 2.1
and, exercise 2.2