Rough implementation of Rect creation for each node. Implemented draw method.