thesis code