Learning foundations