change add method that second arg type object to string(set class name).