Added basic prototype of the map function.