write inherits method in utilities