Use domonad in inherite.