added write18 example