adding code and example