require 'persist'

puts "Input string and number> "
d = Persist.new(gets, gets.to_i)
File.open("serial.dat", "w") { |f|
	Marshal.dump(d, f)
}
