completing homework 3