the mining process flow chart