added solution to prob2 along with extended tests shown by Norvig in answer video