Solve problem 38
Solve problem 39
Make statement in max() simpler for problem 14
Solve problem 40