fixed up example to output stuff