Organizing logic into cookie and csv rb files