Updated code contract definitions