Add answer to problem 9