Adds the basic energy function class.