After Corrected program