Nan's codes on experiments