In this lesson, we will write an algorithm for controlling our models. We will then turn that algorithm into code. Lastly, we will test and debug our program.