add relevant source code and examples