Code form the book The Node Beginner Book by Manuel Kiessling