If you have working code that you want peer reviewed for improvement, your question belongs on
Code Review, which was created specifically for that purpose. This site is for specific questions about actual problems you're having with code, and with working code you don't have a problem. Please be sure to read the help guidelines at CodeReview before posting, as they have some minimum requirements that you need to meet. Also, on both sites, it's important that the first tag you add to your post is for the language that you're using. —
Ken White 54 secs ago