the writePoints example should use the writePoints method