added thomas example
added examples about returns