Add lambda variation to observer pattern