Start to implement Atom writer