completed problem 36
completed problem 37