Adds methods to calculate E_a and E_b