Added some XNA code found online into the comments