Added Flags, Menu and Content class to retreive the main elements and calculate what has to be calculated.