Added code and examples