Updated parser.rb to include indexing of days of week