implemented DecCmd

Not sure about the CMD Pattern