flow diagram of the process involved in mining