finish the whole code for digital-cicuits, in file exercise/digital-circuits.scm