added nodejs inheritance