completed upto ex26.rb