added ex1, ex2, and ex3