#23: first (untested) implementation of Mapred for 3.3.
#23: refactored parameter types of helper methods