Ex10 added

Ex9 was also updated to include correct code