finished section 5 of tutorial