class Command: getResult, calcResult and decode basic functions added