added Observer pattern

This commit implements a simple digital clock using the Observer design
pattern