second try for homework 2