A Practical Agent Programming Language