Working on def ai