Inheritence

Added inheritence features