added namespace function example