Update functions for Programming Assigment 2