Programming Assigment2:update