final answer to Assignment2