Fundamentals of mechanics and heat