updating examples
updating code and examples