Creating FlagList class