function Summarize implemented