Finished Sample Class of convert a w2qcnn archive to middle-ware.