Implemented proper cascaded inheritance