finished through problem 10, started setup for problem 11. Abstracted several general methods into a functions file