Implementation of pattern command : modifications added on classes
command and invoker