Model classes implemented and tested.