use type inference in find_links example
add Output#document getter