Added example using array of points