added code to test Scenario A