added code to create example pdf

Good use for `require_relative`? http://apidock.com/ruby/Kernel/require_relative