code samples added