added command line version in 13 lines