assignment 8 - add solution to problem 4
assignment 8 - fix typo in problem 2