The cs169 version of Generosity Engine