Changed all the instance methods to class methods