Completed the code review for model.js