finished section 3 of hw5