Added ex 17 and 18 and some extended versions of these