Refactor application to add command pattern