Extracted creation of the machineArray[] into a new method called
createMachineArray(). All tests pass.