implemented output, started input