Implemented templated Node class