Applications of Gauss’s law