Scripts used in themacroscope.org book example