Added answer to problem 3.1