first code for circuits