points class working on point