Corrected program