Thesis code source