adding SwitchBehavior to library. Relates to #4