trying other approach of inherits5