Update contract.php