sample nejdb code