Update Samples

Add sample for using with attribute