Copy input to output; 2nd version. Section 1.5.1 page 17