Finished all the basic function of a model