work on problem 5