create Circuit class