Insert semi-colons and make the program actually compilable