Added createNode method