adding summary functionality
adding summary functionality