Change constructor of BodyNode class.