circuits for homework and lecture