simplified map/reduce demo