Add stateful classes.