Added command class and tests