added a way to define a list of pools.
added support for defining classes.