lets translate the whole thing into ror