Added reference link for code snippet of inheritsFrom method.