Example using inheritance, cmd.Cmd, Exceptions