Updated with example code