Lab 6, part 4

finished part 3, lots of syntax errors for some reason.