model.php now full class