flow diagram of process of mining