Made the code compilable