Corrected Erros in coding