Solved problem 18, 19