Fundamentals of machines