Added Node and QueueException classes.