add summarize functionality
add summarize functionality