finished hw 6