Added ex5 and 6.