now creates contract.