                 self?.tickBtnClicked()
             }).disposed(by: bag)
         
+        /* subject observe */
+        tick.subscribe(onNext: { newValue in
+            print("tick's newValue : \(newValue)")
+            }).disposed(by: bag)
+        
         
         //                    .subscribe(onNext: { [unowned self] _ in
         //                        try! realm.write {

    
    func tickBtnClicked(){
        print("tickBtnClicked")
    }
}


    @IBOutlet var tableView: UITableView!
    @IBOutlet var addBtn: UIButton!
    @IBOutlet var tickBtn: UIButton!
    
    let tick: BehaviorRelay<Int> = BehaviorRelay(value: 0)
    
    var dogs: Results<Dog>!
    
