updated Miner.cs