demo added with writer facotry added