Added cmap function to example