implemented command-line arguments