add function skeleton to model.php