avoid class << self. Use self.method instead