Adding observer pattern in Data for updatable algorithms