Write a class LightSwitch, that is initially off and switched on at time 5.

1.1
Tip

sample(start, interval) returns true and triggers time events at time instants and rem(x, y) returns the integer remainder of x/y, such that div(x,y) * y + rem(x, y) = x.