phases of the contract lifecycle