updated code sample with new API
updated History