refactor the DailySummary.java