updated example for new datastructure