for(let machine of sewingmachines){if(machine.style === 'cold-shoulder'){machine.restoretobeginning();} else if(machine.status === 'pre-introductory'){giveadvice(machine, 'this model may unintentionally reveal unuttered faults due to its design.');}}