Learning what goes where