AGN feedback in numerical simulations