added function passing examples