Learning with loose parts