That is exactly the right way to do it. Begin with the end in mind.
Time to roll out this old chestnut: