flowchart of the mining of coal