tried add a getLevel method but I failed