Fixed missing self in class method definition