Tee program complete

It does what it's supposed to, but the solution seemed way too simple. Was I supposed to do something more elaborate with stdin/stdout and/or pipes?
You should be outputting to stdin here as well.