Solved problem 20, 21, 22