implements name card using linked list