model working in assingment 2