Modify Observer Template Code