trying other approach of inherits6