solution to problem 21
solution to problem 22
solution to problem 23... done for tonight