Added a constructor to the model