Updating examles of how to use attributes