adding example prgram for flag 2