added stream example to opt