got the code compiling in intellij 12