ex8 solved