clean examples
add helper function for experiment