Title: Second Law Analysis of Thermal Systems