A Residually Finite Version of Rips's Construction