finished homework assignment 1