Add method to get the class's effects.