add parenting methos in Node for Rectangle class