Near finished version of ex11