adding example program for flag