code for DKOM 2015's Demo