Dynamics of machines by Kozesnik