added working displaySummaries() function