added code and put the compilation solution in readme