Beryl's ajax flags homework