sum() works on generators I guess