working on problem 46