Compartmentalized code into methods