wrote models and simple validations