Add nested functions example