I did a lot of debugging. I suggest you run the program first. Talk to me if you need help deciphering the output`