fixing and testing inheritance