I had some difficulty finding an easy way to understand and program these 2 methods and was not satisfied to simply copy and paste code to get it done. I decided to make this tutorial on the easiest way I could find for both of these.
If there are any mistakes or easier ways to understand this or if there are any questions - please let me know. I hope this helps!!!
Dropbox link:
https://www.dropbox.com/sh/qcrdxg17mz...