refactoring : extracting command counter into a function