implemeing foldMap and concatenate