did problem 21
did problem 40
Cleaned up the code
tried calculating a number I didn't need to