Organizing the code