working on problem 45