working through hw 6