Programming Assignment4: update