@orangy thank you for the taking the time which of course you didn't have to do explain things to me. As I stated in the question I am very new to Kotlin so I'm still figuring things out. I posted here first because it was the weekend and I figured that I wouldn't hear back from the instructors until at least Monday. Fortunately for me I solved the issue on my own. Again sir, thanks for providing me a solution. Cheers Mate.