Foundations of engineering