Adding first attempt to integrate f_gamma