created voc.rb to contain major functions