For reusability, you have to think about it. Which part of the whole program needs to be executed again and again, make it as a function and so on.