extracting metal from its ore in mining