Coding samples done for Dw