added StateAgent and ReflexAgent classes