finished homework section 4