add files and implements Map function prototype