created the main structure for the machine