Writing model classes.