created function to return a map #24