logical agents part ii 9042786