Simple relay class with on, off and toggle