added initialize function to user_model and extended it to my_model