generator rex written in sand modal of coal mining