added node defination
added insert method