This example code is in the Public Domain (or CC0 licensed, at your option.) ...