Final exam, problems 7-9 done