extended example code