flowchart of mine extraction