Foundations of Sequential Learning