flow diagram mining gold system