creating model from scratch