Update frames.rst to include a real working example with doctest coverage