started working on problem 10