added and modified model.php file
added 2 function signatures