What produces energy in the core?