Solved problem 40
Solved prob 35