Updated obsolute example code