Corrected class method definition