add simple examples and move ex1 to ex2