import code from the gowalla pgr simulator