added code, figures etc