Thanks for this tutorial legacy code, Here's mine but I made it a little smaller