Completing homework 1