There are two types of charges: positive charges consist of protons, and negative charges consist of electrons. The standard unit of charge is the coulomb. Conductors contain free or loosely bound electrons that allow them to conduct electricity, while insulators do not have free electrons and obstruct electricity flow. Resistance is a measure of the difficulty electrons have in moving through a material. Ohm's law states that current is directly proportional to voltage and inversely proportional to resistance. Joule's law describes how electrical energy is converted to heat energy when a current passes through a resistor.