added some code samples