created  class Switch