How to write a node - preview