Added hw5 circuit