Mechanics I notes: theory of machines