Finished problem 18