Example of an observer pattern in a stock market, written in Ruby