Ex8 solution. (Ex1 Ada solution)

Also contains minor correctiosn for ex7.