for each 2 revised

revised after lecture review
Switch exercise

created file, copied over code.
switch lesson

completed using rand