Starter code for a 7-segment display. Usable to teach about states and state changes (through broadcasting or other means).