Solution of Assignment2