Completed class functions in Model

Updated functions in class.Model.php