Changed same method names
Added new attribute in Node class
Used Node class' new attribute