finished hw 117c