Structured the main file