- added example for switchFrom