adding Electrostatics code