Added ex3.5 and ex3.6 solutions