sorry on the paragraph before last, inout should read input.

alex