part way through problem 11