Lab2, ex1: Example code