resa experiment code