resolved the error "undefinded References Command::stack" in Command subclasses of Command