Update Assignment2.r