Code Mistakes Corrected

Please Commit this code is working... thanks