Add example code from Pasha