updating examples with code samples