added yearly totals function to DataStorage class