adding ex5 and ex6