Genes can be modified by number of ways. Now a days many tools have been developed and we can easily do genetic modifications.
homologous recombination. example in yeast
plasmid based modification. example in bacteria
crispr mechanism
tallen and zinc finger motifs
restriction enzymes
epigenetic enzymes.
rna interference.