extracted a new class Machine from Preferences