Add sample to show how to use objects