Add resistance in the DemoBlock class, now can get the block resistance.