added getTotalPoints() method