Made it compiled!
Reformated the coding style