adding code and examples