Add cmd module.
Use Cmd module to read user input

A nicer and cleaner way to handle input