Ziqi added create, writeZ in binary class