AEF thesis code