finish hw7 sml