Implement the circuit simulation exercises