added control for number of points in example 6.1