When your program gets longer than one screenful, it gets hard to keep track of. Most interesting problems have hundreds of lines of code. Let's look at tools that make it more manageable.
Use functions to break up code into tasks
Use classes to group variables and functions that naturally go together
Go on to Functions