Improved ex #26 & completed ex #27