trying other approach of inherits7