Energy and matter in stars