demo with learning history