adding the solution to step 11 using duplexer