Lab5, parsing and stuff