added example which read command line args