Created and implemented CommandInvoker