Added getLevel() method