Updated deprecated example