Created main model class