Add each and map functions for dictionary