Added exercise 29 and 30, a bit modified version of ex 30