much improved example in docs