Finished problem 10