my submission for Homework 2