Add extend and inherit method.X