Source code for initial state of clock-based custom layout example