finished homework section 3