update nested resource sample & readme