Let's apply what we've learned on for loops to write code for an MRI machine.