Edit class function to static method