Creating an interface to handle rules and commands