adding example code extracted from files