Modified example code to have a read-only clock