add base models, and useing func
implement simple model