Finished hw 8