Implemented getAllPoints method