Organizing the file and starting on writing a file