cleanup chapter 3 - digital logic level