Got multi-level inheritance working