added misha's code examples