build learning infrastructure