Update samples to version 2.0