Added thesis code