Almost finished implementing model class.