Committed Adding node to linked list and printing linked list