Assignment 5 syntax fixes