added models and controller files