Linked list example done in c