build in observer pattern

this commit is with the iniciated build in observer pattern