Wrapped ex1 in functions to re-use for ex2