add the update method 

add update. pass test