Figured out how to use global variable in data.rb file. modified main to require data.rb.