add contains method and update demo