Thomson model of an atom