taking numbers out and using optparse