upated examples and tests