Model classes structure and implementation.