Implemented Node class