finished section 5 of homework