added the "enumerate" function.