Controller and model creation