solved problem 32, 38