Added answer to Q.6