working on problem 11
problem 11