theory of machines lecture for mechanical engineering