flow diagram process of mining