Preparing the program