test 6 passed. added updating within the set function definition.