Section 3.1 sample programs