added examples for optionals & named params