Engines, Energy, And Entropy: A Thermodynamics Primer