Add preliminary function for looping through examples. Currently works with F4 examples