Corrected Solution