How to create a contract template