Parsing Ex 9 done with lot of help from answers