Add mask writing example.