The given programs are just an example of how you can set up your computation. You always have the option of working from the beginning and using a syntax you are more familiar with.