Agent, Rationality and Task Environment