updates structure, adds example