example code actualized