Creating the ContextualDecision script