add function getPoints