completed hw2 assigment