added getopt sample