Added missing ': public BaseA' to sample.  Thanks to an anonymous contributor.