finished homework 3