implement summary command