solves problem 10