finish part 3 of hw 8