working on homework 4