completed Assignment2