added getSummary method for income