update example1 to support resources name property.