Tutorial #3: Procedures
NetLogo 6.2.1 User Manual