Added constructor to Model