Assembling Electrical Circuits with Logical Elements