classifier code - works for spend and earn query string
resolving merge conflict