Knowledge acquisition of environment