Switched context switching code to active example.

IT WORKS! .....(at least without optimization in the simulator)