using debug module, enhanced example, added dependencies