There are many different styles for breaking a program down into chunks:
Functional Programming where programs are defined as a series of functions with defined inputs and outputs.
Object Orientated Programming where programs are built on the concept of objects, which can contain data and procedures or methods for interacting with other objects.
Procedural Programming where you provide a series of steps or procedures or routines to be carried out, which could be broken down further into steps or subroutines