replaced "model" with "class" throughout this section.