add observer class