some samples from the tutorial book