The way you made the mining is really interesting, What doc did you use to achieve that behavior ?
My imagination! 😂
Seriously though, it's all explained here: