Solved problem 38
Solved problem 39