Corrections after compiling the code

Now it does compile