Programming Intelligent Agents for the Internet