example to show how function declarations are scoped