Update lib/Model.php