Completed Assignment2 of the course