Code I copied from other people's repositories in an attempt to read and comment my understanding above each line.