gold and mining and flowchart