Solution to Problem 12: Duplexer Redux