completed hw2 , ready for submit