finished part 3 of tutorial