#!/usr/bin/ruby -w
print "Content-type: text/html\n\n"
# initial definition
cartoon = {
"character" => "Popeye",
"producer" => "Fleischer Studios",
"year_begin" => "1933",
"year_end" => "1942"
}
# adding a property
cartoon["number_of_cartoons"] = "109"
# printing all keys and values
cartoon.each do |key, value|
puts key + ": " + value + "<br>"
end