rewrite using optparse
new example files