Load: 10mH inductor
Power supply: 1.5V AA cell
BJT: MJE3055
Diode: 1N914
"When the transistor tries to turn off, the inductor tries to keep the current flowing."
Close the switch to connect the diode to the inductor to protect the transistor from the voltage spikes.