Intelligent agents and environments