Updating example and also updating library code