Added sample for observer
added some details