Added PatentGenerator, and added test code 'patent_test.rb'