Date code pulled from: Ruby Cookbook by Lucas Carlson and Leonard Richardson Published by O'Reilly ISBN: 0-596-52369-6