add resource sample