replaced incorrect solution to problem 9 with correct solution