Flags exercise