write class planes