Created model factory with basic functionality