how to operate a mining company