Setup input/output.
First attempt.
Second attempt.