Add exercise 3.6 in .tex an .m