Yes, there are other ways to write the program. There are other ways to write every program. Suggestions for improving your code are off topic for Stack Overflow; and even if they weren't, this isn't remotely specific enough as a question. If you want "any suggestions, feedback, comments" on your code then this is the
wrong website. You could try
codereview.stackexchange.com, but only after reading their FAQ materials and making sure your question meets their requirements. —
Karl Knechtel 24 secs ago