setting up model