Restructed Kundts Tube using Durmus's suggestions.  Now uses indexing in the while loop.