createNode function

Function to create some node