loads of error statements ! have to incorporate error handling properly.
finished the code. have to check it out now
not giving satisfactory answer
 bit improved . But nothing very significant