Added: implementation of CommandWriter without tests