started working on problem 11