Added model class for inner classes.