Added example of setting methods as deprecated