Added distinct Hub example code