work on problem 3