second try at homework 2