To test the application performance run file: run.rb Factory Implement your own class Factory which will have the same behavior as Struct class.