Add self.all method to object sample