add write example for handler