Repaired errors, the code now compiles