Simple (very) implementation of observer pattern