moved some example code from Circuit to Examples