add display.rb for Exercise 6.