Translating your own code