Update ex26

More fixes to code.