Learning of Time Varying Functions is Based on Association Between Successive Stimuli