Set as function example