add function as value in map example