finished hw-9 and hw-10