Implemented Queue and Node classes