set up observer clas