A GUIDE TO A PL AGENT : THE DETAILED EXPLANATION