First version of createNode method