dibi example added
dibi example added + refactoring