Broken code into smaller methods.