Matter and energy : principles of matter and thermodynamics