command line input implemented