Design and manufacture of automatic machines