Working on dbn