a simple knowledge based agent