Improving the connection between the microscopic and macroscopic approaches to thermodynamics in high school