add marginalization example