This is from the book Let's Go by Alex Edwards.
The author has not put any license on his code, this does not mean It's open source so keep that in mind.