Finished problem 12