def bond_residues_together(model, data_file, model_id):
    """Takes a :py:class:`.Model` and creates :py:class:`.Bond`
    objects between the residues of chains in the model.

    :param Model model: the model to update.
    :param PdbDataFile data_file: The source Pdb Data File
    :param int model_id: The ID of the model in the data fileto be used for    conversion."""
    for chain in model.chains():
        for index, residue in enumerate(chain.residues()[:-1]):
            next_residue = chain.residues()[index + 1]
            residue.connect_to(next_residue)
            carboxy_atom = residue.get_atom_by_name('C')
            amino_nitrogen = next_residue.get_atom_by_name('N')
            if carboxy_atom and amino_nitrogen:
                carboxy_atom.bond_to(amino_nitrogen)
