Generate classes.