Implement a function to run commands from user input

Use `getLine` to bind input stream to a variable
Chain actions using `do` keyword