added a self.date and self.get_average method