The Function of an Atom