Use do command in main function
Take validated input from commandline.