course logic: compilation error on maven 2