Completed edit/update code for answers.