finished test3, implemented updateRecord