Working on resistor lattice class