Chapter 3 Clock sample using a controller