Change class method to public method