with example code