completed duplexer exercise