solution for problem 13
solution to problem 22
solution to problem 36
solution to problem 42