finished thm 5.12