Examples from the book "JavaScript Patterns" by Stoyan Stefanov