added small example code