finished homework 2