CommandManager class with spec