test and comments added for Observable Pattern