This is some code that I made myself, not too bad for my first time!