added optimization code, get the experiments via MAP