How to create and send a Contract