Node and Queue class