Changed legacy names in example code