implementing summary table