trying other approach of inherits3