Corrected error in solution