What kind of tasks does the code do? Methods usually do something. Find a task and move the code that does it into a method.