code from tutorium events