finished hw9b