Created chapter5_program2.rb