ex.12 - correcting typos.rb