finished hw 3.3