command line input impl 1