changes to model and added computation of total price