Some examples for writer and state