[Examples] Fixed deprecation warnings for simple examples.
[Examples] Code style.
[Examples] Another deprecation warnings fixing pack.