finished homework 9 -finally