updated examples to not use removed 'save' function