finished hw 4,5