added ex2 example code files