added serially map,foreach and tests