added the getParent method on context