The mathematics of flags!