Getopt class