Proper formatting
Implementing problem 1 (preprocess_prog function)