small dictionary program in ruby