finished hw9a