mining and processing contract template