bowling applying map reduce