Organize code into methods