Programming Assignment 3: update