Same, with the added note that there's actually a better algorithm than this using the '.aggregate' sequence function instead of map (we can't support aggregate in an incremental way since its nonfunctional). Look at SimpleWC.scala to see how to use aggregate.