Skeleton code for creating and saving a node