add example and fix instance is not automatic