adds abstract circuit class and a relay component