in reply to Defactor this code

Hi xerophyte,

I hope this is not homework. Some suggestions that I could quickly come up with are:

Regards,
Mahesh