Welcome to the forums. I edited your post to wrap the code in
tags, which, as you can see, makes it somewhat more nicely formatted. You can do this by pressing the # button and pasting the code...