I would write down on paper what ever "make it to work the same way" is, and get a good understanding of what has to be done. Then I would decide how to go about doing that task, and write those...