Shovelling coal into the server... fixed some bugs and now output is exactly like the teacher output