Use 'class << self' instead of 'def self.method'