use inherits package instead of util module