Learning in a changing world