adding example of working code