Hi Spirit,
Thank you so much for taking the time to go over the code and for rectifying the mistakes.