takes input on command line