The role of chain-electrons in a two-layer model for the high-Tc superconductor YBa2Cu3O7−Δ