changed Slave class to Node class