add create linkedlist utility method