Ch4 : creating commands and handlers