improved example in tutorial