If you'd like a more in-depth explaination of how this works, the content of this blog was taken from this video: https://youtu.be/iFDe5kUUyT0