My corrected Program