Updated ex8.rb, added ex9-10