Using library to write scripts
very similar to command-line usage