Thesis code