updated demo example